using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Game
{
    public class PartOwner<T>
    {
        protected List<Part<T>> m_Part = new List<Part<T>>();

        public virtual void Add(Part<T> part)
        {
            m_Part.Add(part);
        }

        public virtual void Remove(Part<T> part)
        {
            m_Part.Remove(part);
        }

        public virtual Part<T> GetPart()
        {
            return m_Part[0];
        }
    }
}